console.log(1212)

function getadd(name:string,age:number=20):string {
  console.log(age)
  return name
}
getadd("1")

function tsChong(name:string):string;

function tsChong(age:number,num:number):number;

function tsChong(str:any):any{
  if(typeof str === 'string') {
    console.log(str + '字符串')
  }else {
    console.log(str + '数字')
  }
}
tsChong(1)